var url = require('url');

var port = process.env.PORT || 8080;
var server = {
    hostname: 'localhost',
    port: port
};

module.exports = {
    consumerKey: 'pQIGlwarx9jk7DBaceukw',
    consumerSecret: 'dBdoJ6d6k7RJjEHyhrUnywUgrXwUleH9ODZsYel0',
    accessToken: '400750677-EryTygiaz9dWkAqhUezLIhEAHpvv7H7LqM88JQhK',
    accessTokenSecret: 'PnBGZnXOFITX7WlTcmJogTsedaYQY9e1Mc67LBKgsUw',
    dbConfig: {
        host: 'localhost',
        // host: 'fate-e-data-0.dotcloud.com',
        port: 27017,
        // port: 17767,
        name: 'twitter',
        user: 'root',
        pass: 'azOO8IflCIlnoK1Lsjls',
        poolSize: 24
    },
    app: {
        port: port
    },
    api: {
        requestToken: 'https://api.twitter.com/oauth/request_token',
        accessToken: 'https://api.twitter.com/oauth/access_token',
        authorize: 'https://api.twitter.com/oauth/authorize',
        authorizeCallback: url.format({
            protocol: 'http',
            hostname: server.hostname,
            port: server.port,
            pathname: '/authorize/callback'
        })
    }
};
